package com.janlei.learn.map;

import java.util.HashMap;
import java.util.Map;

/**
 * learn for hashMap
 */
class l4HashMap {

    static void main(String[] args) {
        System.out.println(1 << 1);
        System.out.println(3 << 3);
        Map<String, Object> map = new HashMap<>();
        for (int i = 0; i < 64; i++) {
            map.put("" + i, i << 4);
        }
        map.put("tree", "tee");

        StringBuffer ens = new StringBuffer();
        for (Map.Entry<String, Object> entry :
                map.entrySet()) {
            System.out.println(ens.append("entry-key:").append(entry.getKey())
                    .append("\tentry-value:").append(entry.getValue()));
            ens.setLength(0);
        }
    }

}
